﻿using System.Xml;
using Ro.Common.RoInterface.UserType;

namespace Ro.Common.RoInterface.RoWebAction
{
    /// <summary>
    /// 接口定义
    /// 控件操作
    /// </summary>
    public interface IWebRoWebElementFunc
    {
        /// <summary>
        /// 控件清除操作
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebRoWebElementClear(XmlNode sigNode);


        /// <summary>
        /// 控件点击操作
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebRoWebElementClick(XmlNode sigNode);


        /// <summary>
        /// 控件焦点操作
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebRoWebElementFocus(XmlNode sigNode);


        /// <summary>
        /// 控件选择操作（下拉框）
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebRoWebElementSelect(XmlNode sigNode);


        /// <summary>
        /// 控件输入值
        /// </summary>
        /// <param name="sigNode">对应节点</param>
        /// <returns>返回操作</returns>
        WebActionResult WebRoWebElementSendKeys(XmlNode sigNode);
    }
}